package com.chance.cc.crawler.development.command.publish.ebrun;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.ebrun.EbrunCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.ebrun.EbrunCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.ebrun.EbrunScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/18 15:08
 * @Description
 *      亿邦动力网
 **/
public class EbrunPublishCrawlerJob {

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = EbrunCrawlerScheduleJob.publishebrunCrawlerScheduleJobInfo();
        EbrunScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        EbrunCrawlerScript.publishCrawlerNodeScript();
    }
}
